<? if (@$this->sess->userid != ""): ?>
    <div class="row">
        <div class="span12">
            <p>Selamat Datang,</p>
            <p>Alumni Wikusama .......</p>
        </div>
    </div>
<? else: ?>
    <div align="center"><strong style="font-size:16pt" >1</strong> ---> 2 ---> 3</div>
    <div id="message"  align="center">
        <font class="strerr"><?=@$err->name?><?=@$err->graduateyear?><?=@$err->tglLahir?></font>
    </div>
    <br/><br/>
    <form method="post" action="<?= base_url() ?>register">
        <table>
            <tr>
                <td width="30%"><label>Nama</label></td>
                <td><input type="text" name="txtName" id="txtName" placeholder="Nama Lengkap" value="<?=@$alumni->name != '' ? @$alumni->name : @$this->sess->fullname ?>"/>
        </td>
            </tr>
            <tr>
                <td> <label>Angkatan</label></td>
                <td>
                <select id="ddAngkatan" name="ddAngkatan">
                    <option value="">Select</option>
                    <? foreach (getAngkatan() as $k => $v) { ?>
                        <option value="<?= @$v->angkatan_year ?>"<?= @$alumni->graduateyear == $v->angkatan_year ? ' selected="selected"' : (@$this->sess->graduateyear == $v->angkatan_year ? ' selected="selected"' : "") ?>><?= $v->angkatan_name ?></option>
                    <? } ?>
                </select>
                </td>
            </tr>
            <tr>
                <td><label>Tanggal Lahir</label></td>
                <td><input type="text" name="tglLahir" class="span2" value="<?= @$alumni->tglLahir == '' ? ( @$this->sess->birth_date == '' ? '01-01-1980': @$this->sess->birth_date) : @$alumni->tglLahir ?>" data-date-format="dd-mm-yyyy" id="dp2" >
        </td>
            </tr>
        </table>
         <br/><br/>
        <input type="button" onclick="javascript:window.location='<?= base_url() ?>';" value="Cancel"/>
        <input type="submit" value="Next"/>
    </form>
<? endif; ?>